// import upload from '@/utils/upload'
import request from '@/utils/request'
let hips = '/api/'
// 首页
export function homeIndex(data) {
	return request({
		url: hips + 'index',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 公告|新闻 列表
export function noticeList(data) {
	return request({
		url: hips + 'noticeList',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 公告|新闻 详情
export function noticeItem(data, id) {
	return request({
		url: hips + 'notice/' + id,
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 用户资产
export function memberAccount(data) {
	return request({
		url: hips + 'member/account',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 获取激活日志
export function activeLog(data) {
	return request({
		url: hips + 'activeLog',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 获取绑定状态
export function login(data) {
	return request({
		url: hips + 'login',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 查看当前激活定单 
export function mAcAmount(data) {
	return request({
		url: hips + 'member/activeAmount',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 激活列表
export function levelConfig(data) {
	return request({
		url: hips + 'levelConfig',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 绑定上级
export function bbind(data) {
	return request({
		url: hips + 'bind',
		headers: {
			isToken: false
		},
		method: 'post',
		timeout: 20000,
		data: data
	})
}
// 转换
export function zhuanhuan(data) {
	return request({
		url: hips + 'member/saleCommunityProfit',
		headers: {
			isToken: false
		},
		method: 'post',
		timeout: 20000,
		data: data
	})
}

// 激活
export function mActivate(data) {
	return request({
		url: hips + 'member/activate',
		headers: {
			isToken: false
		},
		method: 'post',
		timeout: 20000,
		data: data
	})
}
// 股东列表
export function nodeList(data) {
	return request({
		url: hips + 'nodeList',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 成为股东
export function pnodeList(data) {
	return request({
		url: hips + 'nodeList',
		headers: {
			isToken: false
		},
		method: 'post',
		timeout: 20000,
		data: data
	})
}
// 转账
export function memberTransfer(data) {
	return request({
		url: hips + 'member/transfer',
		headers: {
			isToken: false
		},
		method: 'post',
		timeout: 20000,
		data: data
	})
}
// 提现
export function memberWithdraw(data) {
	return request({
		url: hips + 'member/withdraw',
		headers: {
			isToken: false
		},
		method: 'post',
		timeout: 20000,
		data: data
	})
}
// 社区信息
export function memberTeamInfo(data) {
	return request({
		url: hips + 'member/teamInfo',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 资金日志
export function memberAccountLog(data) {
	return request({
		url: hips + 'member/accountLog',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 获取当前质押信息
export function memberPledgeOrder(data) {
	return request({
		url: hips + 'member/pledgeOrder',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 邀请好友
export function memberInvite(data) {
	return request({
		url: hips + 'member/invite',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 阶段信息

export function quarterPlan(data) {
	return request({
		url: hips + 'quarterPlan',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 质押
export function memberPledge(data) {
	return request({
		url: hips + 'member/pledge',
		headers: {
			isToken: false
		},
		method: 'post',
		timeout: 20000,
		data: data
	})
}

// 质押日志
export function memberPledgeLog(data) {
	return request({
		url: hips + 'member/pledgeLog',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}

// 出局
export function memberSale(data) {
	return request({
		url: hips + 'member/sale',
		headers: {
			isToken: false
		},
		method: 'post',
		timeout: 20000,
		data: data
	})
}
// 视频接口
export function onVideo(data) {
	return request({
		url: hips + 'video',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}
// 图片列表
export function onpic(data) {
	return request({
		url: hips + 'pic',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}

// 团队列表
export function teams(data) {
	return request({
		url: hips + 'member/team',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}

// 获取配置 
export function pconfig(data) {
	return request({
		url: hips + 'config',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000,
		data: data
	})
}

// 质押提现
export function pledgeWithdraw(data) {
	return request({
		url: hips + 'member/pledgeWithdraw',
		headers: {
			isToken: false
		},
		method: 'post',
		timeout: 20000,
		data: data
	})
}

// 重置密码

export function resetPwd(data) {
	return request({
		url: hips + 'member/resetPwd',
		headers: {
			isToken: false
		},
		method: 'post',
		timeout: 20000,
		data: data
	})
}